core: Unify object deletion code with prune
authorColin Walters <walters@verbum.org>
Sun, 20 Jul 2014 12:35:58 +0000 (08:35 -0400)
committerColin Walters <walters@verbum.org>
Sun, 20 Jul 2014 12:57:37 +0000 (08:57 -0400)
commit72da2e0c36144b0ddbfddbcd177643bb91fd7906
tree071b8e08309191c83a6aff7054839260e74ba656
parent1dd4435936fd45c1c086d94c7b0c04c087888107
core: Unify object deletion code with prune

The prune API duplicated logic to delete objects, and furthermore the
core API to delete an object didn't clean up detached metadata.

Fix the duplication by doing the obvious thing: prune should call
_delete.

https://bugzilla.gnome.org/show_bug.cgi?id=733452
src/libostree/ostree-repo-prune.c
src/libostree/ostree-repo.c